package day03;

public class ifElseDemo {
    public static void main(String[] args) {
        double price=400;
        if (price >= 500) {
            price*=0.8;
        }else {
            price*=0.9;

        }
        System.out.println(price);

        int score=-90;
        if(score>=0&&score<+100){
            System.out.println("成绩合法");

        }else {
            System.out.println("成绩不合法");
        }

        int a=80;
        if (a%2==0){
            System.out.println(a+"是偶数");
        }else{
            System.out.println(a+"是奇数");
        }




        }
/*
        if（boolean）{
            语句块1


        }else{
            语句块2

        }

 */

    }

